<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数</title>
</head>
<body>
    <script>
        function fn(){
            console.log('你好我是函数')
        }

        fn()
        function add(a,b){
            console.log(a+b)
        }
        add(8,9)

        function fn2(){
            return 300
        }
        var a = fn2()
        console.log(a)

        function fn3(){
            console.log(arguments)
        }
        fn3(12,13,45,14,'niaho')

    </script>
</body>
</html>